package cn.ges.movie.service

import cn.ges.movie.entity.*
import com.ges.common.dto.MsgDTO
import java.time.LocalDate

/**
 *
 * @author gespent@163.com
 * @date 2021/4/16 16:40
 */
interface MovieService {
    fun listAllMovie(): MutableList<Movie>
    fun getAllCinema(): MutableList<MvCinema>
    fun initMVH()
    fun initMvByDate(time: LocalDate)
    /**
     * 获得电影
     */
    fun geMvById(id: Long): Movie?
    /**
     * 获得放映厅信息
     */
    fun geMvhById(id: Long): MvMovieHall?
    /**
     * 获得排期
     */
    fun geMscById(id: Long): MvScheduling?
    fun listUserTicket(userId: Long, size: Int, current: Int): Pair<Int, MutableList<MvTicket>>
    /**
     * 获得电影院信息
     */
    fun getCmById(id: Long): MvCinema?
    fun getQcode(tId: Long, userId: Long): MsgDTO
    fun inspectTicket(auth: String): MsgDTO
}